/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.net.entitybean;

import java.io.Serializable;
import java.sql.Date;
import oracle.jdbc.OracleTypes;
import queenb.net.annotation.Mapping;
import queenb.net.datacontrol.DataControl;

/**
 *
 * @author VANANH
 */
public class M020 extends DataControl<M020> implements Serializable {

    @Mapping(name = "PM020", typeMapping = OracleTypes.INTEGER)
    private int pm020;
    @Mapping(name = "FM010", typeMapping = OracleTypes.INTEGER)
    private int fm010;
    @Mapping(name = "FM000", typeMapping = OracleTypes.INTEGER)
    private int fm000;
    @Mapping(name = "FV050", typeMapping = OracleTypes.INTEGER)
    private int fv050;
    @Mapping(name = "FN100", typeMapping = OracleTypes.INTEGER)
    private int fn100;
     @Mapping(name = "FN600", typeMapping = OracleTypes.INTEGER)
    private int fn600;
      @Mapping(name = "NI104", typeMapping = OracleTypes.INTEGER)
    private int ni104;
    @Mapping(name = "MV021", typeMapping = OracleTypes.CHAR)
    private String mv021;
     @Mapping(name = "NV121", typeMapping = OracleTypes.CHAR)
    private String nv121;
    @Mapping(name = "MV022", typeMapping = OracleTypes.CHAR)
    private String mv022;
    @Mapping(name = "MD023", typeMapping = OracleTypes.DATE)
    private Date md023;
    @Mapping(name = "MD024", typeMapping = OracleTypes.DATE)
    private Date md024;
    @Mapping(name = "MV025", typeMapping = OracleTypes.CHAR)
    private String mv025;
    @Mapping(name = "MN026", typeMapping = OracleTypes.INTEGER)
    private int mn026;
    @Mapping(name = "ML028", typeMapping = OracleTypes.CHAR)
    private String ml028;
    @Mapping(name = "ML029", typeMapping = OracleTypes.CHAR)
    private String ml029;
     @Mapping(name = "HOTEN", typeMapping = OracleTypes.CHAR)
    private String hoten;
      @Mapping(name = "MV030", typeMapping = OracleTypes.CHAR)
    private String mv030;
      @Mapping(name = "MV031", typeMapping = OracleTypes.CHAR)
    private String mv031;
    @Mapping(name = "val", typeMapping = OracleTypes.INTEGER)
    private int val;
    @Mapping(name = "label", typeMapping = OracleTypes.CHAR)
    private String label;

    private String mess;// noi dung tin nhan den
    /**
     * @return the pm020
     */
    public int getPm020() {
        return pm020;
    }

    /**
     * @param pm020 the pm020 to set
     */
    public void setPm020(int pm020) {
        this.pm020 = pm020;
    }

    /**
     * @return the fm010
     */
    public int getFm010() {
        return fm010;
    }

    /**
     * @param fm010 the fm010 to set
     */
    public void setFm010(int fm010) {
        this.fm010 = fm010;
    }

    /**
     * @return the fm000
     */
    public int getFm000() {
        return fm000;
    }

    /**
     * @param fm000 the fm000 to set
     */
    public void setFm000(int fm000) {
        this.fm000 = fm000;
    }

    /**
     * @return the fv050
     */
    public int getFv050() {
        return fv050;
    }

    /**
     * @param fv050 the fv050 to set
     */
    public void setFv050(int fv050) {
        this.fv050 = fv050;
    }

    /**
     * @return the fn100
     */
    public int getFn100() {
        return fn100;
    }

    /**
     * @param fn100 the fn100 to set
     */
    public void setFn100(int fn100) {
        this.fn100 = fn100;
    }

    /**
     * @return the mv021
     */
    public String getMv021() {
        return mv021;
    }

    /**
     * @param mv021 the mv021 to set
     */
    public void setMv021(String mv021) {
        this.mv021 = mv021;
    }

    /**
     * @return the mv022
     */
    public String getMv022() {
        
        return mv022;
    }

    /**
     * @param mv022 the mv022 to set
     */
    public void setMv022(String mv022) {
        this.mv022 = mv022;
    }

    /**
     * @return the md023
     */
    public Date getMd023() {
        return md023;
    }

    /**
     * @param md023 the md023 to set
     */
    public void setMd023(Date md023) {
        this.md023 = md023;
    }

    /**
     * @return the md024
     */
    public Date getMd024() {
        return md024;
    }

    /**
     * @param md024 the md024 to set
     */
    public void setMd024(Date md024) {
        this.md024 = md024;
    }

    /**
     * @return the mv025
     */
    public String getMv025() {
        return mv025;
    }

    /**
     * @param mv025 the mv025 to set
     */
    public void setMv025(String mv025) {
        this.mv025 = mv025;
    }

    /**
     * @return the val
     */
    public int getVal() {
        return val;
    }

    /**
     * @param val the val to set
     */
    public void setVal(int val) {
        this.val = val;
    }

    /**
     * @return the label
     */
    public String getLabel() {
        return label;
    }

    /**
     * @param label the label to set
     */
    public void setLabel(String label) {
        this.label = label;
    }

    /**
     * @return the mn026
     */
    public int getMn026() {
        return mn026;
    }

    /**
     * @param mn026 the mn026 to set
     */
    public void setMn026(int mn026) {
        this.mn026 = mn026;
    }

    /**
     * @return the ml028
     */
    public String getMl028() {
        return ml028;
    }

    /**
     * @param ml028 the ml028 to set
     */
    public void setMl028(String ml028) {
        this.ml028 = ml028;
    }

    /**
     * @return the ml029
     */
    public String getMl029() {
        return ml029;
    }

    /**
     * @param ml029 the ml029 to set
     */
    public void setMl029(String ml029) {
        this.ml029 = ml029;
    }

    /**
     * @return the hoten
     */
    public String getHoten() {
        return hoten;
    }

    /**
     * @param hoten the hoten to set
     */
    public void setHoten(String hoten) {
        this.hoten = hoten;
    }

    /**
     * @return the fn600
     */
    public int getFn600() {
        return fn600;
    }

    /**
     * @param fn600 the fn600 to set
     */
    public void setFn600(int fn600) {
        this.fn600 = fn600;
    }

    /**
     * @return the ni104
     */
    public int getNi104() {
        return ni104;
    }

    /**
     * @param ni104 the ni104 to set
     */
    public void setNi104(int ni104) {
        this.ni104 = ni104;
    }

    /**
     * @return the nv121
     */
    public String getNv121() {
        return nv121;
    }

    /**
     * @param nv121 the nv121 to set
     */
    public void setNv121(String nv121) {
        this.nv121 = nv121;
    }

    /**
     * @return the mv030
     */
    public String getMv030() {
        return mv030;
    }

    /**
     * @param mv030 the mv030 to set
     */
    public void setMv030(String mv030) {
        this.mv030 = mv030;
    }

    /**
     * @return the mv031
     */
    public String getMv031() {
        return mv031;
    }

    /**
     * @param mv031 the mv031 to set
     */
    public void setMv031(String mv031) {
        this.mv031 = mv031;
    }

    /**
     * @return the mess
     */
    public String getMess() {
        if (mv022 != null) {

            if (mv022.length() > 80) {
                mess = mv022.substring(0, 80) + "...";
            } else {
                mess = mv022;
            }
        }
        return mess;
    }

    /**
     * @param mess the mess to set
     */
    public void setMess(String mess) {
        this.mess = mess;
    }
}
